function addResize(name){
  window.addEventListener('resize', common(name))
}

function removeResize(name){
  window.removeEventListener('resize', common(name))
}

function common(name){
  return function fn(){
    name.resize()
  }
}

export {addResize,removeResize}
